package pers.liyan.shi.springbootactuator.health;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

/**
 * 自定义健康状态指示器
 * @author shily
 * @date 2019/3/31 20:17
 */
@Component
public class MyAppHealthIndicator implements HealthIndicator {
    @Override
    public Health health() {

        return Health.up().withDetail("appStatus", "very well!").build();
    }
}
